﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using mmoss.orm;
using System.Configuration;
//interface to linq context
namespace mmoss.application.classes
{
    
    public static class dbConn
    {
        private static string dbConnection
        {
            get { return ConfigurationManager.AppSettings.Get("dbConn"); }
        }
        //public static posDataContext db = new posDataContext("Data Source=localhost;Initial Catalog=mmossPOS;Integrated Security=True;");
        //public static posDataContext db = new posDataContext("Data Source=s05.winhost.com;Initial Catalog=DB_1505_mmoss;User ID=DB_1505_mmoss_user; Password=climb99");
        public static posDataContext db = new posDataContext(dbConnection);
    }
}
